<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::ConstCubeSlice&lt; T &gt; Class Template Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_const_cube_slice-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::ConstCubeSlice&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A constant lower-dimension slice of a hypercube.  
 <a href="classhelib_1_1_const_cube_slice.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="hypercube_8h_source.html">hypercube.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for helib::ConstCubeSlice&lt; T &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classhelib_1_1_const_cube_slice.png" usemap="#helib::ConstCubeSlice_3C_20T_20_3E_map" alt=""/>
  <map id="helib::ConstCubeSlice_3C_20T_20_3E_map" name="helib::ConstCubeSlice_3C_20T_20_3E_map">
<area href="classhelib_1_1_cube_slice.html" title="A lower-dimension slice of a hypercube." alt="helib::CubeSlice&lt; T &gt;" shape="rect" coords="0,56,166,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5791e8467d77d542605a299052a05fc1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a5791e8467d77d542605a299052a05fc1">ConstCubeSlice</a> (const <a class="el" href="classhelib_1_1_hyper_cube.html">HyperCube</a>&lt; T &gt; &amp;_cube)</td></tr>
<tr class="memdesc:a5791e8467d77d542605a299052a05fc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the slice to the full cube  <a href="classhelib_1_1_const_cube_slice.html#a5791e8467d77d542605a299052a05fc1">More...</a><br /></td></tr>
<tr class="separator:a5791e8467d77d542605a299052a05fc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0095f233d39925cf7e6690f9b650bbd5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a0095f233d39925cf7e6690f9b650bbd5">ConstCubeSlice</a> (const NTL::Vec&lt; T &gt; &amp;_data, const <a class="el" href="classhelib_1_1_cube_signature.html">CubeSignature</a> &amp;_sig)</td></tr>
<tr class="separator:a0095f233d39925cf7e6690f9b650bbd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1790a02943bdcf08183c477d864732c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#ac1790a02943bdcf08183c477d864732c">ConstCubeSlice</a> (const <a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a> &amp;bigger, long i, long _dimOffset=1)</td></tr>
<tr class="separator:ac1790a02943bdcf08183c477d864732c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2d5c1e3e0606e4f87166bb1c920ceac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#af2d5c1e3e0606e4f87166bb1c920ceac">ConstCubeSlice</a> (const <a class="el" href="classhelib_1_1_hyper_cube.html">HyperCube</a>&lt; T &gt; &amp;_cube, long i, long _dimOffset=1)</td></tr>
<tr class="separator:af2d5c1e3e0606e4f87166bb1c920ceac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03b220d9a0d636d118479cdd05c539c2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_cube_signature.html">CubeSignature</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a03b220d9a0d636d118479cdd05c539c2">getSig</a> () const</td></tr>
<tr class="memdesc:a03b220d9a0d636d118479cdd05c539c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">const ref to signature  <a href="classhelib_1_1_const_cube_slice.html#a03b220d9a0d636d118479cdd05c539c2">More...</a><br /></td></tr>
<tr class="separator:a03b220d9a0d636d118479cdd05c539c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bde95bd85c1f566e43b0fc5a1ac9df3"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a0bde95bd85c1f566e43b0fc5a1ac9df3">getSize</a> () const</td></tr>
<tr class="memdesc:a0bde95bd85c1f566e43b0fc5a1ac9df3"><td class="mdescLeft">&#160;</td><td class="mdescRight">total size  <a href="classhelib_1_1_const_cube_slice.html#a0bde95bd85c1f566e43b0fc5a1ac9df3">More...</a><br /></td></tr>
<tr class="separator:a0bde95bd85c1f566e43b0fc5a1ac9df3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5b21d8bfc9b9ddb1fffbbc20ebde105"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#aa5b21d8bfc9b9ddb1fffbbc20ebde105">getNumDims</a> () const</td></tr>
<tr class="memdesc:aa5b21d8bfc9b9ddb1fffbbc20ebde105"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of dimensions  <a href="classhelib_1_1_const_cube_slice.html#aa5b21d8bfc9b9ddb1fffbbc20ebde105">More...</a><br /></td></tr>
<tr class="separator:aa5b21d8bfc9b9ddb1fffbbc20ebde105"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a399e6fd73e187115388692cfd32fb504"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a399e6fd73e187115388692cfd32fb504">getDim</a> (long d) const</td></tr>
<tr class="memdesc:a399e6fd73e187115388692cfd32fb504"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of dimension d  <a href="classhelib_1_1_const_cube_slice.html#a399e6fd73e187115388692cfd32fb504">More...</a><br /></td></tr>
<tr class="separator:a399e6fd73e187115388692cfd32fb504"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0057a51c8ea3f2c09aba223a534cee4d"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a0057a51c8ea3f2c09aba223a534cee4d">getProd</a> (long d) const</td></tr>
<tr class="memdesc:a0057a51c8ea3f2c09aba223a534cee4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">product of sizes of dimensions d, d+1, ...  <a href="classhelib_1_1_const_cube_slice.html#a0057a51c8ea3f2c09aba223a534cee4d">More...</a><br /></td></tr>
<tr class="separator:a0057a51c8ea3f2c09aba223a534cee4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2222c9ffaacb4f4eade3f6d5387dbcc1"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a2222c9ffaacb4f4eade3f6d5387dbcc1">getProd</a> (long from, long to) const</td></tr>
<tr class="memdesc:a2222c9ffaacb4f4eade3f6d5387dbcc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">product of sizes of dimensions from, from+1, ..., to-1  <a href="classhelib_1_1_const_cube_slice.html#a2222c9ffaacb4f4eade3f6d5387dbcc1">More...</a><br /></td></tr>
<tr class="separator:a2222c9ffaacb4f4eade3f6d5387dbcc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a381b1ff3cabe3ae637322911a7396c77"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a381b1ff3cabe3ae637322911a7396c77">getCoord</a> (long i, long d) const</td></tr>
<tr class="memdesc:a381b1ff3cabe3ae637322911a7396c77"><td class="mdescLeft">&#160;</td><td class="mdescRight">get coordinate in dimension d of index i  <a href="classhelib_1_1_const_cube_slice.html#a381b1ff3cabe3ae637322911a7396c77">More...</a><br /></td></tr>
<tr class="separator:a381b1ff3cabe3ae637322911a7396c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd0efeb0727de161843f9f1ea434a73"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a8fd0efeb0727de161843f9f1ea434a73">addCoord</a> (long i, long d, long offset) const</td></tr>
<tr class="memdesc:a8fd0efeb0727de161843f9f1ea434a73"><td class="mdescLeft">&#160;</td><td class="mdescRight">add offset to coordinate in dimension d of index i  <a href="classhelib_1_1_const_cube_slice.html#a8fd0efeb0727de161843f9f1ea434a73">More...</a><br /></td></tr>
<tr class="separator:a8fd0efeb0727de161843f9f1ea434a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a482b543e07df30aea4b46529416fd"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a40a482b543e07df30aea4b46529416fd">numSlices</a> (long d=1) const</td></tr>
<tr class="memdesc:a40a482b543e07df30aea4b46529416fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of slices  <a href="classhelib_1_1_const_cube_slice.html#a40a482b543e07df30aea4b46529416fd">More...</a><br /></td></tr>
<tr class="separator:a40a482b543e07df30aea4b46529416fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e2a77ff125ca4e04aadb1ba0b8e947b"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a9e2a77ff125ca4e04aadb1ba0b8e947b">sliceSize</a> (long d=1) const</td></tr>
<tr class="memdesc:a9e2a77ff125ca4e04aadb1ba0b8e947b"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of one slice  <a href="classhelib_1_1_const_cube_slice.html#a9e2a77ff125ca4e04aadb1ba0b8e947b">More...</a><br /></td></tr>
<tr class="separator:a9e2a77ff125ca4e04aadb1ba0b8e947b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdf82fe6ccc0ad79784725212fd9b1c2"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#afdf82fe6ccc0ad79784725212fd9b1c2">numCols</a> () const</td></tr>
<tr class="memdesc:afdf82fe6ccc0ad79784725212fd9b1c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of columns  <a href="classhelib_1_1_const_cube_slice.html#afdf82fe6ccc0ad79784725212fd9b1c2">More...</a><br /></td></tr>
<tr class="separator:afdf82fe6ccc0ad79784725212fd9b1c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1372bbe035d95cdebc3a24ed85e18556"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a1372bbe035d95cdebc3a24ed85e18556">at</a> (long i) const</td></tr>
<tr class="memdesc:a1372bbe035d95cdebc3a24ed85e18556"><td class="mdescLeft">&#160;</td><td class="mdescRight">read-only reference to element at position i, with bounds check  <a href="classhelib_1_1_const_cube_slice.html#a1372bbe035d95cdebc3a24ed85e18556">More...</a><br /></td></tr>
<tr class="separator:a1372bbe035d95cdebc3a24ed85e18556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df872d7d60ff1e7ec007f7dc02a9339"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_const_cube_slice.html#a2df872d7d60ff1e7ec007f7dc02a9339">operator[]</a> (long i) const</td></tr>
<tr class="memdesc:a2df872d7d60ff1e7ec007f7dc02a9339"><td class="mdescLeft">&#160;</td><td class="mdescRight">read-only reference to element at position i, without bounds check  <a href="classhelib_1_1_const_cube_slice.html#a2df872d7d60ff1e7ec007f7dc02a9339">More...</a><br /></td></tr>
<tr class="separator:a2df872d7d60ff1e7ec007f7dc02a9339"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class helib::ConstCubeSlice&lt; T &gt;</h3>

<p>A constant lower-dimension slice of a hypercube. </p>
<p>A <a class="el" href="classhelib_1_1_const_cube_slice.html" title="A constant lower-dimension slice of a hypercube.">ConstCubeSlice</a> acts like a pointer to a lower dimensional constant subcube of a hypercube. It is initialized using a reference to a hypercube, which must remain alive during the lifetime of the slice, to prevent dangling pointers. The subclass <a class="el" href="classhelib_1_1_cube_slice.html" title="A lower-dimension slice of a hypercube.">CubeSlice</a> works also with non-constant cubes and subcubes.</p>
<p>In addition, for greater flexibility, a "slice" may be initialized with a vector and a signature, rather than a cube </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5791e8467d77d542605a299052a05fc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5791e8467d77d542605a299052a05fc1">&#9670;&nbsp;</a></span>ConstCubeSlice() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::<a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_hyper_cube.html">HyperCube</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>_cube</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>initialize the slice to the full cube </p>

</div>
</div>
<a id="a0095f233d39925cf7e6690f9b650bbd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0095f233d39925cf7e6690f9b650bbd5">&#9670;&nbsp;</a></span>ConstCubeSlice() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::<a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a> </td>
          <td>(</td>
          <td class="paramtype">const NTL::Vec&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_cube_signature.html">CubeSignature</a> &amp;&#160;</td>
          <td class="paramname"><em>_sig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac1790a02943bdcf08183c477d864732c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1790a02943bdcf08183c477d864732c">&#9670;&nbsp;</a></span>ConstCubeSlice() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::<a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>bigger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>_dimOffset</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>initialize the slice to point to the i-th subcube (with some given dimension offset) of the cube pointed to by _cube or bigger. </p>

</div>
</div>
<a id="af2d5c1e3e0606e4f87166bb1c920ceac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2d5c1e3e0606e4f87166bb1c920ceac">&#9670;&nbsp;</a></span>ConstCubeSlice() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::<a class="el" href="classhelib_1_1_const_cube_slice.html">ConstCubeSlice</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_hyper_cube.html">HyperCube</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>_cube</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>_dimOffset</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8fd0efeb0727de161843f9f1ea434a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fd0efeb0727de161843f9f1ea434a73">&#9670;&nbsp;</a></span>addCoord()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::addCoord </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>add offset to coordinate in dimension d of index i </p>

</div>
</div>
<a id="a1372bbe035d95cdebc3a24ed85e18556"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1372bbe035d95cdebc3a24ed85e18556">&#9670;&nbsp;</a></span>at()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T&amp; <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::at </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>read-only reference to element at position i, with bounds check </p>

</div>
</div>
<a id="a381b1ff3cabe3ae637322911a7396c77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a381b1ff3cabe3ae637322911a7396c77">&#9670;&nbsp;</a></span>getCoord()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getCoord </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>get coordinate in dimension d of index i </p>

</div>
</div>
<a id="a399e6fd73e187115388692cfd32fb504"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a399e6fd73e187115388692cfd32fb504">&#9670;&nbsp;</a></span>getDim()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getDim </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>size of dimension d </p>

</div>
</div>
<a id="aa5b21d8bfc9b9ddb1fffbbc20ebde105"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5b21d8bfc9b9ddb1fffbbc20ebde105">&#9670;&nbsp;</a></span>getNumDims()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getNumDims </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of dimensions </p>

</div>
</div>
<a id="a0057a51c8ea3f2c09aba223a534cee4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0057a51c8ea3f2c09aba223a534cee4d">&#9670;&nbsp;</a></span>getProd() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getProd </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>product of sizes of dimensions d, d+1, ... </p>

</div>
</div>
<a id="a2222c9ffaacb4f4eade3f6d5387dbcc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2222c9ffaacb4f4eade3f6d5387dbcc1">&#9670;&nbsp;</a></span>getProd() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getProd </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>product of sizes of dimensions from, from+1, ..., to-1 </p>

</div>
</div>
<a id="a03b220d9a0d636d118479cdd05c539c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03b220d9a0d636d118479cdd05c539c2">&#9670;&nbsp;</a></span>getSig()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_cube_signature.html">CubeSignature</a>&amp; <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getSig </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>const ref to signature </p>

</div>
</div>
<a id="a0bde95bd85c1f566e43b0fc5a1ac9df3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bde95bd85c1f566e43b0fc5a1ac9df3">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>total size </p>

</div>
</div>
<a id="afdf82fe6ccc0ad79784725212fd9b1c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdf82fe6ccc0ad79784725212fd9b1c2">&#9670;&nbsp;</a></span>numCols()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::numCols </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of columns </p>

</div>
</div>
<a id="a40a482b543e07df30aea4b46529416fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40a482b543e07df30aea4b46529416fd">&#9670;&nbsp;</a></span>numSlices()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::numSlices </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em> = <code>1</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of slices </p>

</div>
</div>
<a id="a2df872d7d60ff1e7ec007f7dc02a9339"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2df872d7d60ff1e7ec007f7dc02a9339">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T&amp; <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>read-only reference to element at position i, without bounds check </p>

</div>
</div>
<a id="a9e2a77ff125ca4e04aadb1ba0b8e947b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e2a77ff125ca4e04aadb1ba0b8e947b">&#9670;&nbsp;</a></span>sliceSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_const_cube_slice.html">helib::ConstCubeSlice</a>&lt; T &gt;::sliceSize </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>d</em> = <code>1</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>size of one slice </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="hypercube_8h_source.html">hypercube.h</a></li>
<li>/HElib/src/<a class="el" href="hypercube_8cpp.html">hypercube.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
